package com.service;

import com.entity.*;
import com.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {

    @Autowired
    private StudentMapper studentMapper;

    public List<Student> findAll(){
        return studentMapper.findAll();
    }

    public int addStudent(Student student){
        return studentMapper.addStudent(student);
    }

    public int deleteStudent(String sno){
        return studentMapper.deleteStudent(sno);
    }

    public Student getUpdateStudent(String sno){return studentMapper.getUpdateStudent(sno);}

    public int editStudent(Student student){return studentMapper.editStudent(student);}

    public List<Shows> showStudent(String sno){return studentMapper.showStudent(sno);}

    public List<Area> showAreaList(){return studentMapper.showArea();}
    public List<Age> showAgeList(){return studentMapper.showAge();}
    public List<Policy> showSpoList(){return studentMapper.showSpo();}
}
